package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_IM_GROUP"
 *     
*/
public class CcpImGroup implements Serializable {

    /** identifier field */
    private String cigGuid;

    /** nullable persistent field */
    private String ciuGuid;

    /** nullable persistent field */
    private String cigUsers;

    /** nullable persistent field */
    private String cigName;

    /** nullable persistent field */
    private Integer cigNum;

    /** nullable persistent field */
    private String cigDate;

    /** nullable persistent field */
    private String cigOrder;

    /** nullable persistent field */
    private String cigOther;

    /** nullable persistent field */
    private String cigResv1;

    /** nullable persistent field */
    private String cigResv2;

    /** nullable persistent field */
    private String cigResv3;

    /** full constructor */
    public CcpImGroup(String cigGuid, String ciuGuid, String cigUsers, String cigName, Integer cigNum, String cigDate, String cigOrder, String cigOther, String cigResv1, String cigResv2, String cigResv3) {
        this.cigGuid = cigGuid;
        this.ciuGuid = ciuGuid;
        this.cigUsers = cigUsers;
        this.cigName = cigName;
        this.cigNum = cigNum;
        this.cigDate = cigDate;
        this.cigOrder = cigOrder;
        this.cigOther = cigOther;
        this.cigResv1 = cigResv1;
        this.cigResv2 = cigResv2;
        this.cigResv3 = cigResv3;
    }

    /** default constructor */
    public CcpImGroup() {
    }

    /** minimal constructor */
    public CcpImGroup(String cigGuid) {
        this.cigGuid = cigGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CIG_GUID"
     *         
     */
    public String getCigGuid() {
        return this.cigGuid;
    }

    public void setCigGuid(String cigGuid) {
        this.cigGuid = cigGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIU_GUID"
     *             length="32"
     *         
     */
    public String getCiuGuid() {
        return this.ciuGuid;
    }

    public void setCiuGuid(String ciuGuid) {
        this.ciuGuid = ciuGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_USERS"
     *             length="2147483647"
     *         
     */
    public String getCigUsers() {
        return this.cigUsers;
    }

    public void setCigUsers(String cigUsers) {
        this.cigUsers = cigUsers;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_NAME"
     *             length="50"
     *         
     */
    public String getCigName() {
        return this.cigName;
    }

    public void setCigName(String cigName) {
        this.cigName = cigName;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_NUM"
     *             length="4"
     *         
     */
    public Integer getCigNum() {
        return this.cigNum;
    }

    public void setCigNum(Integer cigNum) {
        this.cigNum = cigNum;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_DATE"
     *             length="20"
     *         
     */
    public String getCigDate() {
        return this.cigDate;
    }

    public void setCigDate(String cigDate) {
        this.cigDate = cigDate;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_ORDER"
     *             length="20"
     *         
     */
    public String getCigOrder() {
        return this.cigOrder;
    }

    public void setCigOrder(String cigOrder) {
        this.cigOrder = cigOrder;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_OTHER"
     *             length="32"
     *         
     */
    public String getCigOther() {
        return this.cigOther;
    }

    public void setCigOther(String cigOther) {
        this.cigOther = cigOther;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_RESV1"
     *             length="50"
     *         
     */
    public String getCigResv1() {
        return this.cigResv1;
    }

    public void setCigResv1(String cigResv1) {
        this.cigResv1 = cigResv1;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_RESV2"
     *             length="100"
     *         
     */
    public String getCigResv2() {
        return this.cigResv2;
    }

    public void setCigResv2(String cigResv2) {
        this.cigResv2 = cigResv2;
    }

    /** 
     *            @hibernate.property
     *             column="CIG_RESV3"
     *             length="150"
     *         
     */
    public String getCigResv3() {
        return this.cigResv3;
    }

    public void setCigResv3(String cigResv3) {
        this.cigResv3 = cigResv3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cigGuid", getCigGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpImGroup) ) return false;
        CcpImGroup castOther = (CcpImGroup) other;
        return new EqualsBuilder()
            .append(this.getCigGuid(), castOther.getCigGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCigGuid())
            .toHashCode();
    }

}
